<?php

include_once 'dbtables_handler.php';

class dbtable_dynamic_game_objects extends dbtables_handler
{

    public function __construct()
    {
        $this->tableName = 'tbl_dynamic_game_object_pool';
        $this->connectToDB();
        $this->openDB();
    }


    public function insertSingleEntry($object_metadataname,$x_pos,$y_pos,$z_pos,$virtual_h,$object_width,$object_length,$number_of_states,$object_is_virtual,$state_number,$image_path,$animatable,$number_of_animation_states,$animation_speed,$animate_once,$animation_height,$object_state,$level)
    {

        $dataStringCommaSeperated = "'$object_metadataname','$x_pos','$y_pos','$z_pos','$virtual_h','$object_width','$object_length','$number_of_states','$object_is_virtual','$state_number','$image_path','$animatable','$number_of_animation_states','$animation_speed','$animate_once','$animation_height','$object_state','$level'";
        return $this->insertData($dataStringCommaSeperated);

    }

        public function getSingleEntry($id)
    {
    return querySingleEntry($id);
    }
    
    public function  deleteSingleEntry($id) {
        $this->deleteData($id);
    }

    public function  getAllEntries($level) {
      return  $this->getAllStagnantGameObjects($level);
    }

    public function deleteAllEntries()
    {
        return $this->emptyTable();
    }
}

?>
